package cn.elegent.txdemo.order.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * User
 * @description 测试用实体类
 * @author WGL
 * @date 2022/11/8 22:44
 */
@TableName("orders")
@Data
public class Order {

    @TableId(type = IdType.AUTO)
    private Long id;

    @TableField("userId")
    private Integer userId;

    @TableField("productId")
    private Integer productId;

    @TableField("productName")
    private String productName;

    @TableField("price")
    private Integer price;

    @TableField("num")
    private Integer num;

    @TableField("money")
    private Integer money;

    @TableField("payTime")
    private LocalDateTime payTime;

    @TableField("status")
    private Integer status;

}
